<?php
include(dirname(__FILE__).'/../includes.php5');

include_once($project_path.'/class/user/user.class.php5');
session_start();
include_once($project_path.'/class/fw/dictionary.class.php5');

$start_path_dir = dirname(__FILE__);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "XHTML1-s.dtd" >
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="./css/commun/main.css">
<link rel="stylesheet" href="./css/commun/popup.css">
<link rel="stylesheet" href="./css/commun/popup.css">
<link rel="stylesheet" href="./css/commun/form.css">

<script src="./js/commun/tools.js?u=<?php echo filemtime($start_path_dir.'/js/commun/tools.js')?>"></script>
<script src="./js/start.js?u=<?php echo filemtime($start_path_dir.'/js/start.js')?>"></script>
<script src="./js/commun/popup.js?u=<?php echo filemtime($start_path_dir.'/js/commun/popup.js')?>"></script>
<script src="./js/commun/ajax.js?u=<?php echo filemtime($start_path_dir.'/js/commun/ajax.js')?>"></script>
</head>
<body scroll="NO">
<script type="text/javascript">
var start_files = new Array();
<?php
	$to_load = array(
		"js" => array(
			"admin/update.js"
			, "commun/menu.js"
			, "commun/cpicker.js"
			, "user/user.js"
			, "user/login.js"
			, "user/register.js"
			, "organization/person.js"
			, "main.js"
			, "page.js"
		)
		, "css" => array(
			"admin/update.css"
			, "admin/default.css"
			, "commun/context.css"
			, "commun/page.css"
			, "commun/menu.css"
			, "commun/cpicker.css"
			, "commun/listgroup.css"
			, "user/profil.css"
			, "user/login.css"
			, "user/register.css"
			, "page/home.css"
		)
	);
	
	foreach ($to_load as $type => $files)
	{
		foreach ($files as $file)
		{
			if(file_exists($start_path_dir.'/'.$type.'/'.$file))
			{
				echo 'start_files.push(["'.$type.'", "'.$file.'", "'.filemtime($start_path_dir.'/'.$type.'/'.$file).'"]);';
			}
		}
	}
?>
</script>
<div id="main">
<div class="home_avatar" id="home_user">
<div id="home_avatar_box"></div>
<div id="home_user_box" class="home_user">
<div id="home_user_box_title"></div>
<div id="home_user_box_menu">
<div id="home_user_box_menu_profil" style="display: none"><a href="javascript:userProfil()">«HOME_PROFIL»</a></div>
<div id="home_user_box_menu_logout" style="display: none"><a href="javascript:loginLogout()">«HOME_LOGOUT»</a></div>
<div id="home_user_box_menu_login" style="display: none"><a href="javascript:loginShow()">«HOME_LOGIN»</a></div>
<div id="home_user_box_menu_register" style="display: none"><a href="javascript:registerShow()">«HOME_REGISTER»</a></div>
</div>
</div>
</div>

<div class="page_layer" id="home_content">
<div class="page_layer_title">
<div onclick="main_about()" id="home_about" class="tooltips"><span class="tip"><nobr>«HOME_TIPS_ABOUT»</nobr></span></div>
<div id="home_content_title" class="home_title"></div>
</div>
<div id="home_content_body" class="page_layer_content"></div>
</div>

<div class="page_layer" id="home_menu">
<div class="page_layer_title" id="home_menu_title"></div>
<div class="page_layer_content">
<div id="menu_box">
<div class="menu_content" id="home_menu_content" items="0"></div>
<ul class="menu_list" id="home_menu_list">
</ul>
</div>
</div>
</div>

</div>
</body>
</html>